<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>带文章栏目展示的社交网站顶部导航</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        :root {
            --transition: all 0.3s ease;
            --primary-color: #4361ee;
            --secondary-color: #3f37c9;
            --light-bg: #f8f9fa;
            --dark-bg: #212529;
        }
        
        body {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            padding-top: 20px;
            background-color: var(--light-bg);
            line-height: 1.6;
        }
        
        .container {
            padding: 2rem 1rem;
        }
        
        .page-title {
            text-align: center;
            margin-bottom: 2.5rem;
            font-weight: 700;
            color: var(--dark-bg);
        }
        
        .section-description {
            text-align: center;
            margin-bottom: 3rem;
            color: #6c757d;
            font-size: 1.1rem;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .header-example {
            margin-bottom: 4rem;
            padding: 1rem;
            border-radius: 8px;
            background-color: #fff;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            overflow: hidden;
        }
        
        .header-label {
            font-size: 1rem;
            color: #495057;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid #e9ecef;
            font-weight: 500;
        }
        
        /* 导航栏样式变体 */
        .navbar-dark-transparent {
            background-color: rgba(33, 37, 41, 0.9);
            backdrop-filter: blur(5px);
        }
        
        .navbar-light-transparent {
            background-color: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(5px);
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        
        .navbar-gradient {
            background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        }
        
        .navbar-accent {
            background-color: #fff;
            box-shadow: 0 2px 15px rgba(67, 97, 238, 0.1);
        }
        
        .navbar-accent .navbar-brand {
            color: var(--primary-color);
        }
        
        .navbar-accent .nav-link {
            color: var(--dark-bg);
        }
        
        .navbar-accent .nav-link:hover {
            color: var(--primary-color);
        }
        
        /* 徽章和通知样式 */
        .notification-badge {
            position: relative;
        }
        
        .notification-dot {
            position: absolute;
            top: 5px;
            right: 5px;
            width: 8px;
            height: 8px;
            background-color: #dc3545;
            border-radius: 50%;
        }
        
        /* 搜索框样式 */
        .search-form {
            position: relative;
        }
        
        .search-form .form-control {
            padding-left: 2.5rem;
        }
        
        .search-form .icon {
            position: absolute;
            left: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            color: #6c757d;
        }
        
        /* 下拉菜单动画 */
        .dropdown-menu {
            transition: var(--transition);
            transform-origin: top;
            transform: scale(1, 0);
            opacity: 0;
            display: block;
        }
        
        .dropdown.show .dropdown-menu {
            transform: scale(1, 1);
            opacity: 1;
        }
        
        /* 文章栏目样式 */
        .article-categories {
            background-color: #fff;
            padding: 1rem 0;
            border-top: 1px solid #e9ecef;
            border-bottom: 1px solid #e9ecef;
        }
        
        .category-pills .badge {
            padding: 0.5rem 1rem;
            margin: 0.25rem;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .category-pills .badge:hover {
            transform: translateY(-2px);
        }
        
        /* 模拟页面内容 */
        .page-content-mock {
            height: 300px;
            background-color: #e9ecef;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #6c757d;
        }
        
        /* 活跃状态指示 */
        .user-status {
            position: relative;
        }
        
        .status-indicator {
            position: absolute;
            bottom: 0;
            right: 0;
            width: 10px;
            height: 10px;
            background-color: #28a745;
            border: 2px solid white;
            border-radius: 50%;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1 class="page-title">带文章栏目展示的社交网站顶部导航</h1>
        <p class="section-description">以下展示了多种社交网站顶部导航设计，包含登录注册功能和文章栏目展示，完全不使用任何图片</p>
        
        <!-- 示例1：基础风格导航栏 -->
        <div class="header-example">
            <div class="header-label">1. 基础风格 - 带文章分类标签</div>
            <!-- 主导航 -->
            <nav class="navbar navbar-expand-lg navbar-light bg-white shadow-sm">
                <div class="container-fluid">
                    <a class="navbar-brand fw-bold fs-4" href="#">
                        <i class="fas fa-feather-alt me-2"></i>ArticleHub
                    </a>
                    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar1">
                        <span class="navbar-toggler-icon"></span>
                    </button>
                    <div class="collapse navbar-collapse" id="navbar1">
                        <div class="search-form me-auto mx-4 d-none d-lg-block">
                            <i class="fas fa-search icon"></i>
                            <input type="search" class="form-control rounded-pill" placeholder="搜索文章、作者或话题...">
                        </div>
                        <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                            <li class="nav-item">
                                <a class="nav-link active" aria-current="page" href="#">
                                    <i class="fas fa-home me-1"></i>首页
                                </a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="#">
                                    <i class="fas fa-compass me-1"></i>发现
                                </a>
                            </li>
                            <li class="nav-item dropdown">
                                <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown">
                                    <i class="fas fa-th-large me-1"></i>栏目
                                </a>
                                <ul class="dropdown-menu">
                                    <li><a class="dropdown-item" href="#"><i class="fas fa-newspaper me-2"></i>最新文章</a></li>
                                    <li><a class="dropdown-item" href="#"><i class="fas fa-fire me-2"></i>热门推荐</a></li>
                                    <li><a class="dropdown-item" href="#"><i class="fas fa-bookmark me-2"></i>我的收藏</a></li>
                                    <li><hr class="dropdown-divider"></li>
                                    <li><a class="dropdown-item" href="#"><i class="fas fa-list me-2"></i>全部分类</a></li>
                                </ul>
                            </li>
                            <li class="nav-item notification-badge">
                                <a class="nav-link" href="#">
                                    <i class="fas fa-bell me-1"></i>通知
                                    <span class="notification-dot"></span>
                                </a>
                            </li>
                        </ul>
                        <div class="d-flex gap-2">
                            <button class="btn btn-outline-primary d-none d-sm-block">登录</button>
                            <button class="btn btn-primary">注册</button>
                        </div>
                    </div>
                </div>
            </nav>
            
            <!-- 文章分类栏目 -->
            <div class="article-categories">
                <div class="container-fluid">
                    <div class="d-flex flex-wrap align-items-center justify-content-between">
                        <div class="category-title me-3 mb-2 mb-md-0">
                            <strong>文章分类:</strong>
                        </div>
                        <div class="category-pills flex-wrap">
                            <span class="badge bg-primary">全部</span>
                            <span class="badge bg-light text-dark">科技</span>
                            <span class="badge bg-light text-dark">生活</span>
                            <span class="badge bg-light text-dark">职场</span>
                            <span class="badge bg-light text-dark">情感</span>
                            <span class="badge bg-light text-dark">旅行</span>
                            <span class="badge bg-light text-dark">美食</span>
                            <span class="badge bg-light text-dark">更多 <i class="fas fa-chevron-down ms-1"></i></span>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="page-content-mock mt-3">
                <p>文章内容展示区域</p>
            </div>
        </div>
        
        <!-- 示例2：深色风格导航栏 -->
        <div class="header-example">
            <div class="header-label">2. 深色风格 - 带精选文章栏目</div>
            <!-- 主导航 -->
            <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
                <div class="container-fluid">
                    <a class="navbar-brand fw-bold fs-4" href="#">
                        <i class="fas fa-pen-square me-2"></i>WriteSocial
                    </a>
                    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar2">
                        <span class="navbar-toggler-icon"></span>
                    </button>
                    <div class="collapse navbar-collapse" id="navbar2">
                        <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                            <li class="nav-item">
                                <a class="nav-link active" aria-current="page" href="#">首页</a>
                            </li>
                            <li class="nav-item dropdown">
                                <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown">
                                    文章分类
                                </a>
                                <ul class="dropdown-menu dropdown-menu-dark">
                                    <li><a class="dropdown-item" href="#">科技</a></li>
                                    <li><a class="dropdown-item" href="#">文化</a></li>
                                    <li><a class="dropdown-item" href="#">艺术</a></li>
                                    <li><a class="dropdown-item" href="#">历史</a></li>
                                    <li><a class="dropdown-item" href="#">科学</a></li>
                                </ul>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="#">热门作者</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="#">话题讨论</a>
                            </li>
                        </ul>
                        <div class="search-form me-3 d-none d-md-block">
                            <i class="fas fa-search icon"></i>
                            <input type="search" class="form-control bg-secondary bg-opacity-30 border-0 text-white rounded-pill" placeholder="搜索文章...">
                        </div>
                        <div class="d-flex gap-2">
                            <button class="btn btn-outline-light">登录</button>
                            <button class="btn btn-light text-dark">注册</button>
                        </div>
                    </div>
                </div>
            </nav>
            
            <!-- 精选文章栏目 -->
            <div class="article-categories bg-dark text-white">
                <div class="container-fluid">
                    <div class="d-flex align-items-center justify-content-between mb-2">
                        <h6 class="mb-0"><i class="fas fa-star text-warning me-1"></i> 编辑精选</h6>
                        <a href="#" class="text-white text-decoration-none small">查看全部</a>
                    </div>
                    <div class="d-flex overflow-x-auto pb-2 gap-3">
                        <div class="bg-dark-secondary bg-opacity-30 p-3 rounded flex-shrink-0" style="width: 280px;">
                            <div class="d-flex justify-content-between align-items-start mb-1">
                                <span class="badge bg-primary">科技</span>
                                <small>10分钟阅读</small>
                            </div>
                            <h6 class="mb-1"><a href="#" class="text-white text-decoration-none">人工智能如何改变内容创作</a></h6>
                            <small class="text-muted">作者: 张明 · 3天前</small>
                        </div>
                        <div class="bg-dark-secondary bg-opacity-30 p-3 rounded flex-shrink-0" style="width: 280px;">
                            <div class="d-flex justify-content-between align-items-start mb-1">
                                <span class="badge bg-success">生活</span>
                                <small>5分钟阅读</small>
                            </div>
                            <h6 class="mb-1"><a href="#" class="text-white text-decoration-none">数字极简主义的实践指南</a></h6>
                            <small class="text-muted">作者: 李华 · 1周前</small>
                        </div>
                        <div class="bg-dark-secondary bg-opacity-30 p-3 rounded flex-shrink-0" style="width: 280px;">
                            <div class="d-flex justify-content-between align-items-start mb-1">
                                <span class="badge bg-warning">职场</span>
                                <small>8分钟阅读</small>
                            </div>
                            <h6 class="mb-1"><a href="#" class="text-white text-decoration-none">远程工作效率提升技巧</a></h6>
                            <small class="text-muted">作者: 王静 · 2周前</small>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="page-content-mock mt-3">
                <p>文章内容展示区域</p>
            </div>
        </div>
        
        <!-- 示例3：已登录状态导航栏 -->
        <div class="header-example">
            <div class="header-label">3. 已登录状态 - 带个性化文章推荐</div>
            <!-- 主导航 -->
            <nav class="navbar navbar-expand-lg navbar-light navbar-accent">
                <div class="container-fluid">
                    <a class="navbar-brand fw-bold fs-4" href="#">
                        <i class="fas fa-share-alt me-2"></i>SharePost
                    </a>
                    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar3">
                        <span class="navbar-toggler-icon"></span>
                    </button>
                    <div class="collapse navbar-collapse" id="navbar3">
                        <div class="search-form me-auto mx-4 d-none d-md-block">
                            <i class="fas fa-search icon"></i>
                            <input type="search" class="form-control bg-light border-0 rounded-pill" placeholder="搜索文章、用户或标签...">
                        </div>
                        <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                            <li class="nav-item">
                                <a class="nav-link active" aria-current="page" href="#">
                                    <i class="fas fa-home me-1"></i>首页
                                </a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="#">
                                    <i class="fas fa-compass me-1"></i>探索
                                </a>
                            </li>
                            <li class="nav-item dropdown">
                                <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown">
                                    <i class="fas fa-folder-open me-1"></i>专栏
                                </a>
                                <ul class="dropdown-menu">
                                    <li><a class="dropdown-item" href="#">我的专栏</a></li>
                                    <li><a class="dropdown-item" href="#">关注的专栏</a></li>
                                    <li><a class="dropdown-item" href="#">创建专栏</a></li>
                                </ul>
                            </li>
                            <li class="nav-item notification-badge">
                                <a class="nav-link" href="#">
                                    <i class="fas fa-bell me-1"></i>通知
                                    <span class="badge bg-danger rounded-pill" style="position: absolute; top: 0; right: 0; font-size: 0.7rem;">3</span>
                                </a>
                            </li>
                        </ul>
                        <div class="d-flex align-items-center gap-3">
                            <button class="btn btn-primary d-none d-sm-flex gap-1">
                                <i class="fas fa-pen"></i> 发布文章
                            </button>
                            <div class="dropdown">
                                <button class="btn btn-link nav-link dropdown-toggle d-flex align-items-center gap-2 p-0" type="button" data-bs-toggle="dropdown">
                                    <span class="bg-primary text-white rounded-circle p-1 user-status">
                                        <i class="fas fa-user"></i>
                                        <span class="status-indicator"></span>
                                    </span>
                                    <span class="d-none d-sm-inline">张小明</span>
                                </button>
                                <ul class="dropdown-menu dropdown-menu-end">
                                    <li><a class="dropdown-item" href="#"><i class="fas fa-user me-2"></i>个人主页</a></li>
                                    <li><a class="dropdown-item" href="#"><i class="fas fa-bookmark me-2"></i>我的收藏</a></li>
                                    <li><a class="dropdown-item" href="#"><i class="fas fa-cog me-2"></i>设置</a></li>
                                    <li><hr class="dropdown-divider"></li>
                                    <li><a class="dropdown-item text-danger" href="#"><i class="fas fa-sign-out-alt me-2"></i>退出登录</a></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </nav>
            
            <!-- 个性化推荐栏目 -->
            <div class="article-categories">
                <div class="container-fluid">
                    <div class="d-flex flex-wrap align-items-center justify-content-between mb-2">
                        <h6 class="mb-0"><i class="fas fa-lightbulb text-warning me-1"></i> 为你推荐</h6>
                        <div class="d-flex gap-2">
                            <button class="btn btn-sm btn-outline-secondary">换一批</button>
                            <button class="btn btn-sm btn-outline-primary">编辑兴趣</button>
                        </div>
                    </div>
                    <div class="d-flex flex-wrap gap-2">
                        <div class="d-flex align-items-center gap-2 bg-light p-2 rounded flex-fill">
                            <span class="badge bg-info"><i class="fas fa-code"></i></span>
                            <a href="#" class="text-dark text-decoration-none">前端开发新趋势：2023年值得关注的技术</a>
                        </div>
                        <div class="d-flex align-items-center gap-2 bg-light p-2 rounded flex-fill">
                            <span class="badge bg-success"><i class="fas fa-book"></i></span>
                            <a href="#" class="text-dark text-decoration-none">如何培养持续阅读的习惯</a>
                        </div>
                        <div class="d-flex align-items-center gap-2 bg-light p-2 rounded flex-fill">
                            <span class="badge bg-warning"><i class="fas fa-running"></i></span>
                            <a href="#" class="text-dark text-decoration-none">忙碌工作中的高效健身方案</a>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="page-content-mock mt-3">
                <p>个性化文章展示区域</p>
            </div>
        </div>
        
        <!-- 示例4：渐变风格导航栏 -->
        <div class="header-example">
            <div class="header-label">4. 渐变风格 - 带热门话题栏目</div>
            <!-- 主导航 -->
            <nav class="navbar navbar-expand-lg navbar-gradient text-white">
                <div class="container-fluid">
                    <a class="navbar-brand fw-bold fs-4" href="#">
                        <i class="fas fa-comments me-2"></i>TopicPulse
                    </a>
                    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar4">
                        <span class="navbar-toggler-icon"></span>
                    </button>
                    <div class="collapse navbar-collapse" id="navbar4">
                        <div class="search-form me-auto mx-4 d-none d-lg-block">
                            <i class="fas fa-search icon"></i>
                            <input type="search" class="form-control bg-white bg-opacity-20 border-0 text-white rounded-pill" placeholder="搜索话题或文章...">
                        </div>
                        <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                            <li class="nav-item">
                                <a class="nav-link active" aria-current="page" href="#">首页</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="#">话题</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="#">专栏</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="#">活动</a>
                            </li>
                        </ul>
                        <div class="d-flex gap-3">
                            <a href="#" class="nav-link text-white notification-badge">
                                <i class="fas fa-bell"></i>
                                <span class="notification-dot"></span>
                            </a>
                            <div class="d-flex gap-2">
                                <button class="btn btn-outline-light">登录</button>
                                <button class="btn btn-light text-primary">注册</button>
                            </div>
                        </div>
                    </div>
                </div>
            </nav>
            
            <!-- 热门话题栏目 -->
            <div class="article-categories bg-light">
                <div class="container-fluid">
                    <div class="d-flex justify-content-between align-items-center mb-2">
                        <h6 class="mb-0"><i class="fas fa-fire text-danger me-1"></i> 热门话题</h6>
                        <a href="#" class="text-primary text-decoration-none small">更多话题</a>
                    </div>
                    <div class="d-flex flex-wrap gap-2">
                        <div class="border rounded p-3 flex-grow-1 flex-sm-none flex-sm-grow-0" style="max-width: 200px;">
                            <div class="d-flex justify-content-between align-items-center mb-1">
                                <span class="small text-muted">#科技创新</span>
                                <span class="badge bg-light text-dark">1.2k篇</span>
                            </div>
                            <a href="#" class="text-dark text-decoration-none small">AI生成内容的版权争议与未来</a>
                        </div>
                        <div class="border rounded p-3 flex-grow-1 flex-sm-none flex-sm-grow-0" style="max-width: 200px;">
                            <div class="d-flex justify-content-between align-items-center mb-1">
                                <span class="small text-muted">#生活方式</span>
                                <span class="badge bg-light text-dark">3.5k篇</span>
                            </div>
                            <a href="#" class="text-dark text-decoration-none small">数字游民：工作与旅行的平衡之道</a>
                        </div>
                        <div class="border rounded p-3 flex-grow-1 flex-sm-none flex-sm-grow-0" style="max-width: 200px;">
                            <div class="d-flex justify-content-between align-items-center mb-1">
                                <span class="small text-muted">#职场成长</span>
                                <span class="badge bg-light text-dark">2.8k篇</span>
                            </div>
                            <a href="#" class="text-dark text-decoration-none small">如何有效提升远程团队协作效率</a>
                        </div>
                        <div class="border rounded p-3 flex-grow-1 flex-sm-none flex-sm-grow-0" style="max-width: 200px;">
                            <div class="d-flex justify-content-between align-items-center mb-1">
                                <span class="small text-muted">#心理健康</span>
                                <span class="badge bg-light text-dark">1.9k篇</span>
                            </div>
                            <a href="#" class="text-dark text-decoration-none small">高压工作环境中的情绪管理技巧</a>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="page-content-mock mt-3">
                <p>话题文章展示区域</p>
            </div>
        </div>
    </div>

    <!-- Bootstrap JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 导航栏滚动效果
        document.querySelectorAll('.navbar.fixed-top').forEach(navbar => {
            window.addEventListener('scroll', function() {
                if (window.scrollY > 10) {
                    navbar.classList.add('shadow');
                } else {
                    navbar.classList.remove('shadow');
                }
            });
        });
        
        // 分类标签点击效果
        document.querySelectorAll('.category-pills .badge').forEach(badge => {
            badge.addEventListener('click', function() {
                // 移除所有badge的活跃状态
                document.querySelectorAll('.category-pills .badge').forEach(b => {
                    b.classList.remove('bg-primary');
                    b.classList.add('bg-light', 'text-dark');
                });
                
                // 设置当前点击的badge为活跃状态
                this.classList.remove('bg-light', 'text-dark');
                this.classList.add('bg-primary');
            });
        });
    </script>
</body>
</html>
    
